import http from "@/utils/http"

const queryDriverInfoByPhone = `/applet/BaseData/BdDriver/queryDriverInfoByPhone`
const queryVehicleByVehicleNo = `/applet/BaseData/rel/queryVehicleByVehicleNo`

/**
 * 根据司机电话获取司机信息
 * @param {司机电话} driverPhone 
 */
export const getDriverInfo =(driverPhone) =>{
  return http.post(queryDriverInfoByPhone,{phone:driverPhone})
}

/**
 * 根据司机id获取司机绑定的车辆信息
 * @param {司机id} driverId 
 */
export const getVehicleInfo = (driverId) =>{
  return http.post(queryVehicleByVehicleNo,{driverId:driverId})
}